
NUI Chapter 14. Using the Leap Motion Controller

From the website:

  Killer Game Programming in Java
  http://fivedots.coe.psu.ac.th/~ad/jg

  Dr. Andrew Davison
  Dept. of Computer Engineering
  Prince of Songkla University
  Hat yai, Songkhla 90112, Thailand
  E-mail: ad@fivedots.coe.psu.ac.th


If you use this code, please mention my name, and include a link
to the website.

Thanks,
  Andrew

============================

This directory contains 3 Java files:
  * LeapDoodle.java, DoodlePanel.java, DoodleListener.java


There are 2 batch files:
  * compile.bat
  * run.bat
     - make sure they refer to the correct location for your
       download of the Leap SDK

----------------------------
Before Compilation/Execution:

* You need a Leap Motion controller (available https://www.leapmotion.com/)

* download and install the Leap SDK, available after
  free registration, from https://developer.leapmotion.com/

  compile.bat and run.bat assume that the SDK is stored in 
  D:\LeapMotion\LeapSDK


----------------------------
Compilation:

> compile *.java

----------------------------
Execution:

> run LeapDoodle

-----
Hand/Finger controls:

* one finger == move the dot
* two fingers == draw dots onto the canvas as the dot moves
* three fingers == delete dots
 
* If two hands are detected, then the dot stops moving, and if a
  circling finger gesture is detected for the *left* hand then the
  color of the current dot cycles through a range of colors. 

  Counter-clockwise circling reverses the cycling of the colors.

---------
Last updated: 7th August 2013